package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderLogisticsstatusExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderLogisticsstatusExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogisticsstatusIdIsNull() {
            addCriterion("logisticsStatus_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdIsNotNull() {
            addCriterion("logisticsStatus_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdEqualTo(String value) {
            addCriterion("logisticsStatus_id =", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotEqualTo(String value) {
            addCriterion("logisticsStatus_id <>", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdGreaterThan(String value) {
            addCriterion("logisticsStatus_id >", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdGreaterThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_id >=", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdLessThan(String value) {
            addCriterion("logisticsStatus_id <", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdLessThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_id <=", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdLike(String value) {
            addCriterion("logisticsStatus_id like", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotLike(String value) {
            addCriterion("logisticsStatus_id not like", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdIn(List<String> values) {
            addCriterion("logisticsStatus_id in", values, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotIn(List<String> values) {
            addCriterion("logisticsStatus_id not in", values, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdBetween(String value1, String value2) {
            addCriterion("logisticsStatus_id between", value1, value2, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotBetween(String value1, String value2) {
            addCriterion("logisticsStatus_id not between", value1, value2, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameIsNull() {
            addCriterion("logisticsStatus_name is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameIsNotNull() {
            addCriterion("logisticsStatus_name is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameEqualTo(String value) {
            addCriterion("logisticsStatus_name =", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameNotEqualTo(String value) {
            addCriterion("logisticsStatus_name <>", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameGreaterThan(String value) {
            addCriterion("logisticsStatus_name >", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameGreaterThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_name >=", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameLessThan(String value) {
            addCriterion("logisticsStatus_name <", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameLessThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_name <=", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameLike(String value) {
            addCriterion("logisticsStatus_name like", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameNotLike(String value) {
            addCriterion("logisticsStatus_name not like", value, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameIn(List<String> values) {
            addCriterion("logisticsStatus_name in", values, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameNotIn(List<String> values) {
            addCriterion("logisticsStatus_name not in", values, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameBetween(String value1, String value2) {
            addCriterion("logisticsStatus_name between", value1, value2, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusNameNotBetween(String value1, String value2) {
            addCriterion("logisticsStatus_name not between", value1, value2, "logisticsstatusName");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1IsNull() {
            addCriterion("logisticsStatus_other1 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1IsNotNull() {
            addCriterion("logisticsStatus_other1 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1EqualTo(String value) {
            addCriterion("logisticsStatus_other1 =", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1NotEqualTo(String value) {
            addCriterion("logisticsStatus_other1 <>", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1GreaterThan(String value) {
            addCriterion("logisticsStatus_other1 >", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1GreaterThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_other1 >=", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1LessThan(String value) {
            addCriterion("logisticsStatus_other1 <", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1LessThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_other1 <=", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1Like(String value) {
            addCriterion("logisticsStatus_other1 like", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1NotLike(String value) {
            addCriterion("logisticsStatus_other1 not like", value, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1In(List<String> values) {
            addCriterion("logisticsStatus_other1 in", values, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1NotIn(List<String> values) {
            addCriterion("logisticsStatus_other1 not in", values, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1Between(String value1, String value2) {
            addCriterion("logisticsStatus_other1 between", value1, value2, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther1NotBetween(String value1, String value2) {
            addCriterion("logisticsStatus_other1 not between", value1, value2, "logisticsstatusOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2IsNull() {
            addCriterion("logisticsStatus_other2 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2IsNotNull() {
            addCriterion("logisticsStatus_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2EqualTo(String value) {
            addCriterion("logisticsStatus_other2 =", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2NotEqualTo(String value) {
            addCriterion("logisticsStatus_other2 <>", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2GreaterThan(String value) {
            addCriterion("logisticsStatus_other2 >", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2GreaterThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_other2 >=", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2LessThan(String value) {
            addCriterion("logisticsStatus_other2 <", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2LessThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_other2 <=", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2Like(String value) {
            addCriterion("logisticsStatus_other2 like", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2NotLike(String value) {
            addCriterion("logisticsStatus_other2 not like", value, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2In(List<String> values) {
            addCriterion("logisticsStatus_other2 in", values, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2NotIn(List<String> values) {
            addCriterion("logisticsStatus_other2 not in", values, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2Between(String value1, String value2) {
            addCriterion("logisticsStatus_other2 between", value1, value2, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther2NotBetween(String value1, String value2) {
            addCriterion("logisticsStatus_other2 not between", value1, value2, "logisticsstatusOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3IsNull() {
            addCriterion("logisticsStatus_other3 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3IsNotNull() {
            addCriterion("logisticsStatus_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3EqualTo(String value) {
            addCriterion("logisticsStatus_other3 =", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3NotEqualTo(String value) {
            addCriterion("logisticsStatus_other3 <>", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3GreaterThan(String value) {
            addCriterion("logisticsStatus_other3 >", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3GreaterThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_other3 >=", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3LessThan(String value) {
            addCriterion("logisticsStatus_other3 <", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3LessThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_other3 <=", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3Like(String value) {
            addCriterion("logisticsStatus_other3 like", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3NotLike(String value) {
            addCriterion("logisticsStatus_other3 not like", value, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3In(List<String> values) {
            addCriterion("logisticsStatus_other3 in", values, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3NotIn(List<String> values) {
            addCriterion("logisticsStatus_other3 not in", values, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3Between(String value1, String value2) {
            addCriterion("logisticsStatus_other3 between", value1, value2, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther3NotBetween(String value1, String value2) {
            addCriterion("logisticsStatus_other3 not between", value1, value2, "logisticsstatusOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4IsNull() {
            addCriterion("logisticsStatus_other4 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4IsNotNull() {
            addCriterion("logisticsStatus_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4EqualTo(Integer value) {
            addCriterion("logisticsStatus_other4 =", value, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4NotEqualTo(Integer value) {
            addCriterion("logisticsStatus_other4 <>", value, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4GreaterThan(Integer value) {
            addCriterion("logisticsStatus_other4 >", value, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4GreaterThanOrEqualTo(Integer value) {
            addCriterion("logisticsStatus_other4 >=", value, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4LessThan(Integer value) {
            addCriterion("logisticsStatus_other4 <", value, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4LessThanOrEqualTo(Integer value) {
            addCriterion("logisticsStatus_other4 <=", value, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4In(List<Integer> values) {
            addCriterion("logisticsStatus_other4 in", values, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4NotIn(List<Integer> values) {
            addCriterion("logisticsStatus_other4 not in", values, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4Between(Integer value1, Integer value2) {
            addCriterion("logisticsStatus_other4 between", value1, value2, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther4NotBetween(Integer value1, Integer value2) {
            addCriterion("logisticsStatus_other4 not between", value1, value2, "logisticsstatusOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5IsNull() {
            addCriterion("logisticsStatus_other5 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5IsNotNull() {
            addCriterion("logisticsStatus_other5 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5EqualTo(Integer value) {
            addCriterion("logisticsStatus_other5 =", value, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5NotEqualTo(Integer value) {
            addCriterion("logisticsStatus_other5 <>", value, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5GreaterThan(Integer value) {
            addCriterion("logisticsStatus_other5 >", value, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5GreaterThanOrEqualTo(Integer value) {
            addCriterion("logisticsStatus_other5 >=", value, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5LessThan(Integer value) {
            addCriterion("logisticsStatus_other5 <", value, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5LessThanOrEqualTo(Integer value) {
            addCriterion("logisticsStatus_other5 <=", value, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5In(List<Integer> values) {
            addCriterion("logisticsStatus_other5 in", values, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5NotIn(List<Integer> values) {
            addCriterion("logisticsStatus_other5 not in", values, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5Between(Integer value1, Integer value2) {
            addCriterion("logisticsStatus_other5 between", value1, value2, "logisticsstatusOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusOther5NotBetween(Integer value1, Integer value2) {
            addCriterion("logisticsStatus_other5 not between", value1, value2, "logisticsstatusOther5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}